﻿namespace KingerRobot.MexicoSailunMDC.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 立库内库位状态
    /// </summary>
    public DbSet<POVCrnLocNode> VCrnLocNode { get; set; }
}


/// <summary>
/// 立库内库位状态
/// </summary>
[Table("v_crn_loc_node")]
public class POVCrnLocNode
{
    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }

    /// <summary>
    /// 设备名——堆垛机
    /// </summary>
    [Column("equip_name")]
    public string EquipName { get; set; }

    /// <summary>
    /// 库位编号
    /// </summary>
    [Column("loc_code")]
    public string LocCode { get; set; }

    /// <summary>
    /// 库位名
    /// </summary>
    [Column("loc_name")]
    public string LocName { get; set; }
    /// <summary>
    /// 是否有货
    /// </summary>
    [Column("loc_has_sku")]
    public int? LocHasSku { get; set; }

    /// <summary>
    /// 有货时间
    /// </summary>
    [Column("loc_has_sku_time")]
    public DateTime? LocHasSkuTime { get; set; }

    /// <summary>
    /// 任务占用
    /// </summary>
    [Column("task_occupy")]
    public int? TaskOccupy { get; set; }

    /// <summary>
    /// 任务占用时间
    /// </summary>
    [Column("task_occupy_time")]
    public DateTime? TaskOccupyTime { get; set; }

    /// <summary>
    /// 生产时间
    /// </summary>
    [Column("md_time")]
    public DateTime? MdTime { get; set; }

    /// <summary>
    /// 条码
    /// </summary>
    [Column("product_code")]
    public string ProductCode { get; set; }

    /// <summary>
    /// Spec码
    /// </summary>
    [Column("spec")]
    public string Spec { get; set; }

    /// <summary>
    /// 库位是否可用
    /// </summary>
    [Column("loc_enable")]
    public int? LocEnable { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [Column("remarks")]
    public string Remarks { get; set; }

    /// <summary>
    /// X坐标
    /// </summary>
    [Column("n_axis_x")]
    public int? NAxisX { get; set; }

    /// <summary>
    /// Z坐标
    /// </summary>
    [Column("n_axis_z")]
    public int? NAxisZ { get; set; }

    /// <summary>
    /// T坐标
    /// </summary>
    [Column("n_axis_t")]
    public int? NAxisT { get; set; }

    /// <summary>
    /// 行
    /// </summary>
    [Column("loc_row")]
    public int? LocRow { get; set; }

    /// <summary>
    /// 列
    /// </summary>
    [Column("loc_column")]
    public int? LocColumn { get; set; }

    /// <summary>
    /// 立库号
    /// </summary>
    [Column("warehouse_no")]
    public int? WarehouseNo { get; set; }

    /// <summary>
    /// 控件类型 1 -- 普通控件，2 -- 说明控件
    /// </summary>
    [Column("show_type")]
    public int? ShowType { get; set; }

    /// <summary>
    /// SkuId
    /// </summary>
    [Column("sku_id")]
    public long? SkuId { get; set; }
    /// <summary>
    /// tbm_expiration_time
    /// </summary>
    [Column("tbm_expiration_time")]
    public DateTime? TbmExpirationTime { get; set; }

    /// <summary>
    /// 是否锁定
    /// </summary>
    [Column("tire_Lock")]
    public int? TireLock { get; set; }

}
